projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b0936a1
)
GtkRange: fix resize-grip overlap handling
author
Matthias Clasen
<mclasen@redhat.com>
Sun, 15 Jan 2012 01:29:38 +0000
(20:29 -0500)
committer
Matthias Clasen
<mclasen@redhat.com>
Sun, 15 Jan 2012 01:35:19 +0000
(20:35 -0500)
We only want to shrink the scrollbar allocation by the actual
overlap, not always by the full size of the resize grip.
gtk/gtkrange.c
patch
|
blob
|
history
diff --git
a/gtk/gtkrange.c
b/gtk/gtkrange.c
index cb8b1c839fd95b40e5d2afa0e471f953924afc48..5397e8c1f3071eecd9e261959b0dc28308a0309f 100644
(file)
--- a/
gtk/gtkrange.c
+++ b/
gtk/gtkrange.c
@@
-1635,7
+1635,7
@@
modify_allocation_for_window_grip (GtkWidget *widget,
}
/* If the stepper button intersects the window resize grip.. */
- if (gdk_rectangle_intersect (&grip_rect, &translated_rect,
NULL
))
+ if (gdk_rectangle_intersect (&grip_rect, &translated_rect,
&grip_rect
))
{
if (priv->orientation == GTK_ORIENTATION_HORIZONTAL)
{